import request from "../request";
import { VideoListBO } from "./types";
// 获取轮播图列表
const getSlideshowList = (query: any) => {
  return request({
    url: "/website/banner/list",
    method: "get",
    data: query,
  });
};

// 获取热门视频列表
const getHotVideoList = (query: VideoListBO) => {
  return request({
    url: "/website/video/hotList",
    method: "get",
    params: query,
  });
};

// 获取分类列表
const getCategoryList = (query: any) => {
  return request({
    url: `/website/media/category/list`,
    method: "get",
    params: query,
  });
};

// 获取分类视频列表
const getCategoryVideoList = (query: any) => {
  return request({
    url: "/website/video/list",
    method: "get",
    params: query,
  });
};

export {
  getSlideshowList,
  getHotVideoList,
  getCategoryList,
  getCategoryVideoList,
};
